<!DOCTYPE HTML>
<html>

<head>
    <title> 库存下载统计</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../../../assets/css/dpl-min.css" rel="stylesheet" type="text/css"/>
    <link href="../../../assets/css/bui-min.css" rel="stylesheet" type="text/css" />
    <link href="../../../assets/css/page-min.css" rel="stylesheet" type="text/css" />
    <link href="../../../assets/css/prettify.css" rel="stylesheet" type="text/css" />
</head>

<body>
    <div class="container">
        <div class="detail-page">
            <div class="span24">
                <h3>库存下载统计 </h3>
                <hr>
            </div>
            <div class="detail-section">
                <div class="row detail-row">
                    <div class="span24">
                        <!-- 表格 start-->
                        <div id="grid"></div>
                        <!-- 表格 end-->
                    </div>
                </div>
            </div>
        </div>
    </div>
  
    <script type="text/javascript" src="../../../assets/js/jquery-1.8.1.min.js"></script>
    <script type="text/javascript" src="../../../assets/js/bui-min.js"></script>
    <script type="text/javascript" src="../../../assets/js/config-min.js"></script>
    <script type="text/javascript">
    BUI.use('common/page');
    </script>
    <!-- script start -->
    <script type="text/javascript">
    
    BUI.use(['bui/grid', 'bui/data'], function(Grid, Data) {
        var Grid = Grid,
            Store = Data.Store,
            columns = [{
                title: '序号',
                dataIndex: 'a',
                elCls: 'center', //居中
                width: 100
            }, {
                id: '123',
                title: '账户 ',
                elCls: 'center',
                dataIndex: 'b',
                width: 150
            }, {
                title: '名称',
                elCls: 'center',
                dataIndex: 'c',
                width: 100
            }, {
                title: '企业名称',
                elCls: 'center',
                dataIndex: 'd',
                width: 250
            }, {
                title: '下载供应商',
                elCls: 'center',
                dataIndex: 'e',
                width: 100
            }, {
                title: '操作时间',
                elCls: 'center',
                dataIndex: 'f',
                width: 200
            }],
            data = [{
                id: '01',
                a: '15900684377',
                b: '陈晨',
                c: '酷锐',
                d:'上海激想体育文化股份有限公司',
                e:'酷锐',
                f:'2016-03-11 11:10:21'
            }];
        //初始化数据
        var isAddRemote = false,
            editing = new Grid.Plugins.DialogEditing({
                contentId: 'content', //设置隐藏的Dialog内容
                triggerCls: 'btn-edit', //触发显示Dialog的样式

                editor: {
                    title: '编辑商品品牌',
                    width: 600,
                }
            }),
            store = new Store({ //初始化数据
                data: data,
                autoLoad: true, //自动加载数据
                pageSize: 2 // 配置分页数目
            }),
            grid = new Grid.Grid({
                render: '#grid',
                elCls: 'small-bui-grid-table',
                columns: columns,
                loadMask: true, //加载数据时显示屏蔽层
                 forceFit: true,

                    // 底部工具栏
                bbar: {
                    // pagingBar:表明包含分页栏
                    pagingBar: true
                },
                plugins: [editing], //插件
                store: store
            });

        grid.render();
        
        
    });
    </script>
    <!-- script end -->

    <body>

</html>
